$(document).ready(function(){
    
    /*
 * show dialog box
 */
    $.fn.createDialogBox = function()
    {
        $(this).dialog({
            width: 'auto',
            height: 'auto',
            draggable: true,
            resizable: false,
            modal: true,
            autoOpen: false
        });
    }
    /*
 * close dialog box
 */
    $.fn.closeDialogBox = function()
    {
        $(this).dialog('close')
    }

    /*
 * open created dialog box
 */
    $.fn.openDialogBox = function()
    {
        $(this).dialog('open')
    }
})